package org.jeecg.modules.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.poi.hpsf.Decimal;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.dto.CouponsGenerateDto;
import org.jeecg.modules.business.dto.ProvideCouponsUsedDto;
import org.jeecg.modules.business.entity.BusMarketCouponsCashUsed;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.entity.BusMarketMealCouponsUsed;

import java.math.BigDecimal;

/**
 * @Description: bus_market_coupons_cash_used
 * @Author: jeecg-boot
 * @Date:   2023-03-11
 * @Version: V1.0
 */
public interface IBusMarketCouponsCashUsedService extends IService<BusMarketCouponsCashUsed> {
    public Result generate(CouponsGenerateDto dto);

    /**
     * 发放免房券给非会员
     * @param dto
     * @return
     */
    public Result gainCouponsCashUsedToNoMember(ProvideCouponsUsedDto dto);

    /**
     * 发放免房券给会员
     * @param dto
     * @return
     */
    public Result gainCouponsCashUsedToMember(ProvideCouponsUsedDto dto);

    /**
     * 获取可用优惠券
     * @param page
     * @param hotelId
     * @param conditions 满多少金额
     * @param mobile 手机号
     * @return
     */
    public Page<BusMarketMealCouponsUsed> memeberCouponList(Page<BusMarketMealCouponsUsed> page, String hotelId, BigDecimal conditions, String mobile);
}
